<?php if(!$sf_user->isAuthenticated()) { ?>
<form autocomplete="off" action="<?php echo url_for('user/login') ?>" method="post" id="loginform" name="loginform">
   <fieldset>
      <!-- <legend>Log in</legend> -->

      <p></p>

      <label for="username"><input type="text" id="username" tabindex="1" name="username"/><?php echo __('Korisničko ime') ?>:</label>
      <label for="password"><input type="password" id="password" tabindex="2" name="password"/><?php echo __('Šifra') ?>:</label>
      <!-- <label for="remember_me"><input type="checkbox" id="remember_me" tabindex="3" value="1" name="remember_me"/>Remember me ?</label> -->
      <label for="submit">
        <input type="image" src="/images/uloguj_se.gif" style="width: 74px; height: 20px; border: 0;" alt="Uloguj se" />
      </label>

    </fieldset>
</form>
<script>
  $(document).ready(function() {
    $('#username').focus();
});
</script>
<?php }?>